﻿using System;
using System.Linq;

class FindGreaterOfFive
{
    static void Main(string[] args)
    {
		System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
        // Initialize
        decimal greatest = int.MinValue;
        string input = String.Empty;

        // Find greatest
        for (int i = 1; i <= 5; i++)
        {
            input = Console.ReadLine();
            decimal number = decimal.Parse(input);
            
            if (number > greatest)
            {
                greatest = number;
            }
        }

        // Print result
        Console.WriteLine(greatest);
    }
}
